package com.third.bank.UtilTest;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import redis.clients.jedis.Jedis;

@SpringBootTest
public class JedisUtil {

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Test
    public void test(){
        ValueOperations<String, String> ops = stringRedisTemplate.opsForValue();
        System.out.println(ops.get("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MTAsInVzZXJuYW1lIjoi6YOR5rabIiwiaWRfY2FyZCI6IjU5NjU4NjkwMzQ0NTgxMDAwMSIsInN1YiI6ImxvZ2luVXNlciIsImV4cCI6MTY4MjQ4MDM3MCwianRpIjoiNmY2MjZmYTAtNmE3My00ZGU1LWE4MTQtYzJlYTc5OWZkMTRjIn0._9fg6tfPg7YIzF7Vv4grVFIHw7Lo8g6PzU_voxXjlGQ"));
    }

}
